import 'package:json_annotation/json_annotation.dart';

part 'reg_new_qr.g.dart';

@JsonSerializable()
class RegNewQr {
  final int id;
  final String username;
  final String originPassword;
  final String invitor;
  final String clientId;

  RegNewQr(
    this.id,
    this.username,
    this.originPassword,
    this.invitor,
    this.clientId,
  );

  factory RegNewQr.fromJson(Map<String, dynamic> json) => _$RegNewQrFromJson(json);

  Map<String, dynamic> toJson() => _$RegNewQrToJson(this);
}
